package org.dbstar.scheduler.concurrent;

import java.util.concurrent.FutureTask;

import org.dbstar.scheduler.beans.Job;
import org.dbstar.scheduler.job.JobRunner;


/**
 * 封装适应于执行Job的FutureTask
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-4-6
 */
public final class JobFutureTask extends FutureTask<Job> {
	private final Job job;

	/**
	 * @param callable
	 */
	public JobFutureTask(JobRunner runner) {
		super(runner);
		this.job = runner.getJob();
	}

	public Job getJob() {
		return job;
	}
}
